package com.ggggeeennn.studentUser.domain.DO;

import java.util.List;

public class AiQuery {
    private String message;
    private List<MessageInfo> history;

    public List<MessageInfo> getHistory() {
        return history;
    }

    public void setHistory(List<MessageInfo> history) {
        this.history = history;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "AiQuery{" +
                "message='" + message + '\'' +
                ", history=" + history +
                '}';
    }

    // MessageInfo 内部类
    public static class MessageInfo {
        private String role;
        private String content;

        public String getRole() {
            return role;
        }

        public void setRole(String role) {
            this.role = role;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        @Override
        public String toString() {
            return "MessageInfo{" +
                    "role='" + role + '\'' +
                    ", content='" + content + '\'' +
                    '}';
        }
    }
}
